package com.ftg.learn.comm.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ftg.learn.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 字典表，用来维护系统当中的参数
 * </p>
 *
 * @author kangjx
 * @since 2022-09-30
 */
@Data
@ApiModel(value = "字典表",description = "字典表映射对象")
@TableName("sys_dictionary")
public class Dictionary extends BaseEntity {

    /**
     * 上级编号  顶级为-1
     */
    @TableField("p_id")
    @ApiModelProperty(value = "父级编号",example = "1",required = true)
    private Integer pid;

    /**
     * 字典名称
     */
    @TableField("dic_name")
    @ApiModelProperty(value = "字典名称",example = "性别",required = true)
    private String dicName;

    /**
     * 描述
     */
    @TableField("dic_desc")
    @ApiModelProperty(value = "描述",example = "")
    private String dicDesc;

}
